﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register src="AjaxDataTable.ascx" tagname="AjaxDataTable" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>AjaxDataTable--让你台设置--无刷新数据显示--刘巨--090601</title>
<script language="javascript" type="text/javascript">
//增加信息
function Btn3Click()
{
    location.href="EditShow.aspx";
}
//选择了哪些行
function selectStr_btnClick()
{
    alert("在页面的JS中调用CheckBoxSelectKeyStr()的反回值\r\n\r\n就可以得到你选择的结果\r\n\r\n"+CheckBoxSelectKeyStr());
}
//编辑
function DataRowEditClick(TableName,ID)
{
    alert("你要在页面写一个JavaScript的函数DataRowEditClick(TableName,ID)\r\n\r\n用来实现编辑接口\r\n\r\nTableName:表名  ID:主键ID\r\n\r\nTableName:"+TableName+"   ID:"+ID);
    var urlStr="EditShow.aspx?editID="+ID;
    //window.open(urlStr);
    location.href=urlStr;
}
//点击自定列的时候
function CustomColumnClick(TableName,ID)
{
    alert("你要在页面写一个JavaScript的函数CustomColumnClick(TableName,ID)\r\n\r\n用来实现编辑接口\r\n\r\nTableName:表名  ID:主键ID\r\n\r\nTableName:"+TableName+"   ID:"+ID);
}
//换样式
function styleCss1()
{
    $("#styleCss").attr("href","Style/Style1.css");
}
function styleCss2()
{
    $("#styleCss").attr("href","Style/Style2.css");
}
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <uc1:AjaxDataTable ID="AjaxDT" runat="server" />
    </div>
    <div>
        <input id="selectStr_btn" type="button" value="选择结果" onclick="selectStr_btnClick()" />
        <input id="Button1" type="button" value="样式1" onclick="styleCss1()" />
        <input id="Button2" type="button" value="样式2" onclick="styleCss2()" />
        <input id="Button3" type="button" value="增加信息" onclick="Btn3Click()" />
    </div>
    </form>
</body>
</html>
